package entity;

public class Course {
    private final String id;
    private final String name;
    private final String location;
    private final String time;
    private final String teacherName;

    public Course(String id, String name, String location, String time, String teacherName) {
        this.id = id; this.name = name; this.location = location;
        this.time = time; this.teacherName = teacherName;
    }

    public String getTeacherName() { return teacherName; }
    public String getName()        { return name; }

    @Override
    public String toString() {
        return "课程编号：" + id + "，名称：" + name +
               "，授课教师：" + teacherName +
               "，地点：" + location + "，时间：" + time;
    }
}